package com.spring.wx.oauth.service;

import com.spring.wx.oauth.dao.VerifyCodeMapper;
import com.spring.wx.oauth.entity.VerifyCodeEntity;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Copyright: yueyong (c) 2022
 *
 * @author he.shaorong
 * @version 1.0
 * @date 2022/5/2
 */
@Service
public class VerifyCodeService {
    @Resource
    private VerifyCodeMapper verifyCodeMapper;


    public List<VerifyCodeEntity> getVerifyCodeEntityFromPhoneNumber(String phone) {
        return verifyCodeMapper.getVerifyCodeEntityByMobilePhone(Long.valueOf(phone));
    }
}
